define(["../logic/index"], function (pluginClass) {
    return {
        pluginClass: pluginClass,
        style: {
            backgroundColor: "#f0f4f6"
        },
        root: ["mainvlayout"],
        components: {
            mainvlayout: {
                type: "vbox",
                items: [
                    {
                        root: ["main_body"],
                        style: {}
                    }
                ]
            },
            main_header: {
                type: "hbox",
                style: {
                    background: "#fff",
                    height: "100%",
                    borderBottom:"1px solid #eee",
                    width: "100%"
                },
                items: [
                    {
                        root: ["header_logo"],
                        style: {
                            verticalAlign: "middle",
                            width: "160px"
                        }
                    }, {
                        root: ["space_name"],
                        style: {
                            verticalAlign: "middle"
                        }
                    }, {
                        root: ["userHeader"],
                        style: {
                            verticalAlign: "middle",
                            width: "50px"
                        }
                    }
                ]
            },
            userHeader: {
                type: 'image',
                ref: true,
                defaultSrc: "./imgs/header.png",
                style: {
                    width: "30px",
                    height: "30px",
                    borderRadius: "15px"
                }
            },
            space_name: {
                type: "text",
                ref: true,
                style: {
                    fontSize: "13px",
                    color: "#333"
                },
                text: "-"
            },
            header_logo: {
                type: "image",
                className: 'header_logo',
                src: './imgs/logo.png',
                style: {
                    background: "#fff",
                    height: "32px",
                    marginLeft: "10px",
                    width: "120px"
                }
            },

            main_body: {
                type: "hbox",
                style: {
                    height: "100%",
                    width: "100%"
                },
                items: [
                    {
                        root: ["main_left_view"],
                        style: {
                            width: "200px",
                            backgroundColor: "#fff",
                            borderRight: "1px solid #e2e2e2"
                        }
                    }, {
                        root: ["pageviewContainer"],
                        style: {
                            overflow: "auto"
                        }
                    }
                ]
            },
            main_left_view: {
                type: "view",
                style: {
                    width: "100%",
                    height: "100%",
                    paddingTop: "28px",
                    overflow:"auto"
                },
                root: ["main_left_icon", "main_left_menu"]
            },
            main_left_menu: {
                type: "menu",
                ref: true,
                // itemHoverClassName:"yy-item-hover",
                style: {
                    marginTop: "25px"
                },
                items: [
                    {"icon": "icomoon_e923", "text": "日志查询", "children": [
                      {"icon": "", "text": "我的日志", "href": "index/commonpage_my"},
                      {"icon": "", "text": "分享给我的", "href": "index/commonpage_all"},
                      {"icon": "", "text": "@我的", "href": "index/commonpage_atme"},
                      {"icon": "", "text": "下属日志", "href": "index/commonpage_depart"},
                      {"icon": "", "text": "团队日志", "href": "index/commonpage_team"},
                    ]},
                    {"icon": "icomoon_e937", "text": "我的草稿", "href": "index/commonpage_draft"},
					{"icon": "icomoon_e936", "text": "我的收藏", "href": "index/commonpage_collect"},
                    {"icon": "icomoon_e934", "text": "日志统计", "children": [
                      {"icon": "", "text": "按部门统计", "href": "index/statistics_depart"},
                      {"icon": "", "text": "按团队统计", "href": "index/statistics_team"},
                    ]},
                    {"icon": "icomoon_e922", "text": "日志汇总", "children": [], "href": "index/summary"}

                ]
            },
            main_left_icon: {
                type: "icon",
                font: "icomoon_e903",
                text: "日志",
                style: {
                    width: "100px",
                    margin: "auto",
                    color: "#0FD084"
                },
                iconStyle: {
                    width: "32px",
                    fontSize: "30px"
                },
                textStyle: {
                    fontSize: "20px",
                    marginLeft: "8px"
                }
            },
            pageviewContainer: {
                type: "pagecontainer",
                style: {
                    height: "100%",
                    minHeight: "300px",
                    backgroundColor: "#fff",
                    minWidth: "800px"
                }
            },



            feature_dialog:{
              type:'view',
              style:{
                backgroundColor:"#fff",
                overflow:"hidden",
                borderRadius:"4px",
                width:"480px",
                fontSize:"14px",
                margin:"auto",
                textAlign:"center"
              },
              root:["feature_dialog_img","feature_dialog_body","feature_dialog_ok"]
            },
            feature_dialog_img:{
              type:"image",
              src:"./imgs/feature.png",
              style:{
                height:170,
                width:"100%"
              }
            },
            feature_dialog_body:{
              type:"view",
              style:{
                height:250,
                backgroundColor:"#fff",
                padding:"20px 20px 0 20px"
              },
              root:["feature_dialog_content"]
            },
            feature_dialog_content:{
              ref:true,
              type:"text",
              noHoverTitle:true,
              style:{
                textAlign:"left",
                lineHeight:"28px",
                color:"#999999"
              },
              text:""
            },

            feature_dialog_ok:{
              type:"text",
              text:"知道了",
              style:{
                borderTop:"1px solid #F5F5F5",
                cursor:"pointer",
                height:"40px",
                textAlign:"center",
                lineHeight:"40px",
                color:"#37B7FD"
              }
            }


        }
    };
});
